package com.neuedu.corejava.ch7.homework3;
//文学系的学生
public class LectureStudent extends Student {

	//演讲
	private double lecture;
	
	//文学作品
	private double literature;

	public LectureStudent() {
	}
	
	public LectureStudent(int studentId, String name, String sex, int age, double midtermGrade, double finalExamGrade) {
		super(studentId, name, sex, age, midtermGrade, finalExamGrade);
	}
	
	public LectureStudent(int studentId, String name, String sex, int age, double midtermGrade, double finalExamGrade,double lecture,double literature) {
		super(studentId, name, sex, age, midtermGrade, finalExamGrade);
	   this.lecture= literature;
	   this.literature=literature;
	}

	public double getLecture() {
		return lecture;
	}

	public void setLecture(double lecture) {
		this.lecture = lecture;
	}

	public double getLiterature() {
		return literature;
	}

	public void setLiterature(double literature) {
		this.literature = literature;
	}
	
	
	
	@Override
	public double gradeAssessing() {
		double grade = (lecture + literature)*0.35  + (getFinalExamGrade()+getMidtermGrade())*0.15;
		return grade;
		
	}
	
}
